{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import numpy as np\n",
    "import matplotlib.pyplot as plt\n",
    "import pickle"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [],
   "source": [
    "with open('./code-600000-603000.pkl', 'rb') as f:\n",
    "    results = pickle.load(f)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "1002"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "is_profit = [p[-1] for p in results]\n",
    "len(is_profit)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/home/kaboom/.pyenv/versions/3.6.8/lib/python3.6/site-packages/matplotlib/font_manager.py:1331: UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to DejaVu Sans\n",
      "  (prop.get_family(), self.defaultFamily[fontext]))\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWQAAADvCAYAAADFG66PAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi40LCBodHRwOi8vbWF0cGxvdGxpYi5vcmcv7US4rQAAIABJREFUeJzt3Xl8nGW9///Xdc9MlsneNm26p21Cuk0XCgTKVsqiEiziYRE4xyqKoCI/Fzz2oEfr8tXq0eNRVBYFDbILKEsRQXZZ0lJCSelCWpruadKkmUky+9zX7497WkK3TNKZ3DOTz/PxmEczk2vu+SRN3rnnuq9Faa0RQghhP8PuAoQQQlgkkIUQIk1IIAshRJqQQBZCiDQhgSy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Pnz6zpqZm5q5du1J+AitnyBnOXV2rSs/8jx/njpt+k3I45f9zeJkBNHjqPV9tWtp0h93FZIrnnnuu4LXXXit6991312/dutX1kY985ITm5uZ3f//735ffeuutLeecc47f6/Uaq1atyg+Hw2rjxo3rvV6vUVJSkvK+ezlDzmBl53x2VNniz7+eM3rKMgnjYSsfuN1T73nAU+8ptruYTPDqq68WLF682OtwOKiqqork5+eb27dvd33qU5/q/NKXvlR5zz33lJaUlJgnnXRSwOfzOa+55pqJXq93SLJSAjlDjfzIl88omLW4yVU2rtbuWkRauAJ4y1PvSe5Fsyx0tLWPr7vuus5HHnlk85/+9KeRN9xww3i3261Xr169cd68ef4zzjhj+rZt2wa6B+SASSBnGHd1rSpf8p/XFcw65x/OwhEVdtcj0so04DVPvecrdheSzhYtWtTzwgsvFMdiMVpaWlyBQMCYNGlSpLW11TFz5szwL37xi50NDQ2FHR0dDoAbb7yxY+7cub3vvPNOXqprk7e5GcRdXZtT6Dn/p/nTTr5BuijEUeQAv/bUe2YCN6TdmhgJDFNLNp/P5xwzZswcgNNOO637b3/729azzz7bN3PmzJkul0v/9re/3WYYBtdee+2kTZs25SulWL58+a633nor77rrrqt0uVy6srIydN555x1z0fpkkF/qDOGuri0qWrDknrzJcz+uZN8k0b/rgcmees/lTUubUh4k6SwWix32R+AnP/lJ609+8pPWvo898cQTh21Y+/7777+bytoOJV0WGcBdXTu65NTLn8mvnLdEwlgMwMeAVzz1nrF2FyISI4Gc5tzVtVOLay/9e+746afaXYvISPOAf3nqPdPsLkT0TwI5jbmra6uKT/nko3kTZp5ody0io03FCuU5dhcijk0COU3Fw/jhvImz59pdi8gKFcBLnnqPvNNKYxLIaUjCWKRIKfB3OVNOXxLIacZdXVtVfPIlf5EwFilSCvxD+pTTkwRyGnFX11YVnXjRfXmTPPPsrkVktQrgWU+9Z5zdhYgPk3HIacJdXTstv+rU3+VVzj/Z7lrEsDAFeMZT7zmraWlT51C9aLKndjctbep3osk3v/nNsQ8++ODI4uLi2CO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ppRbbWaMQqSKBLOzyGvCp+MdXY+3EjFJqmta6QWv9XaAdmKiUmgq8r7X+NfAY1spyQmQd6UMWKaeUMrGmKB/wv8AjwB+BUVjB+1mt9Xal1KNYa1wo4Dngq8C3gP/AmjbdClylte4cuq9AiKEhgSyEEGlCuiyEECJNSCALIUSakEAWQog0IYEshBBpQgJZCCHShASyEEKkCQlkIYRIExLIQgiRJv5/P0179aqJhUMAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "import matplotlib.pyplot as plt\n",
    "import matplotlib.font_manager as fm\n",
    "\n",
    "font = fm.FontProperties(fname='./font/wqy-microhei.ttc')\n",
    "\n",
    "labels = 'Profit', 'Loss', '0'\n",
    "\n",
    "sizes = [0, 0, 0]\n",
    "\n",
    "for p in is_profit:\n",
    "    if p > 0:\n",
    "        sizes[0] += 1\n",
    "    if p < 0:\n",
    "        sizes[1] += 1\n",
    "    else:\n",
    "        sizes[2] += 1\n",
    "\n",
    "explode = (0.1, 0.05, 0.05)\n",
    "\n",
    "fig1, ax1 = plt.subplots()\n",
    "ax1.pie(sizes, explode=explode, labels=labels, autopct='%1.1f%%', \n",
    "        shadow=True, startangle=90)\n",
    "ax1.axis('equal')\n",
    "plt.legend(prop=font)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(array([8.50180513e-06, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 8.50180513e-06,\n",
       "        1.70036103e-05, 1.70036103e-05, 2.55054154e-05, 5.95126359e-05,\n",
       "        8.50180513e-06, 6.80144410e-05, 6.80144410e-05, 1.02021662e-04,\n",
       "        1.61534297e-04, 3.57075815e-04, 9.60703980e-04, 9.43700369e-04,\n",
       "        1.02871842e-03, 1.19875452e-03, 7.99169682e-04, 5.01606503e-04,\n",
       "        4.76101087e-04, 3.23068595e-04, 2.80559569e-04, 1.61534297e-04,\n",
       "        2.12545128e-04, 1.36028882e-04, 1.53032492e-04, 5.10108308e-05,\n",
       "        5.10108308e-05, 4.25090257e-05, 5.10108308e-05, 3.40072205e-05,\n",
       "        2.55054154e-05, 8.50180513e-06, 8.50180513e-06, 4.25090257e-05,\n",
       "        8.50180513e-06, 1.70036103e-05, 8.50180513e-06, 2.55054154e-05,\n",
       "        8.50180513e-06, 8.50180513e-06, 0.00000000e+00, 1.70036103e-05,\n",
       "        0.00000000e+00, 0.00000000e+00, 8.50180513e-06, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        8.50180513e-06, 0.00000000e+00, 8.50180513e-06, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,\n",
       "        0.00000000e+00, 8.50180513e-06]),\n",
       " array([-5492.66295171, -5375.2756467 , -5257.88834168, -5140.50103666,\n",
       "        -5023.11373165, -4905.72642663, -4788.33912161, -4670.9518166 ,\n",
       "        -4553.56451158, -4436.17720656, -4318.78990155, -4201.40259653,\n",
       "        -4084.01529151, -3966.6279865 , -3849.24068148, -3731.85337646,\n",
       "        -3614.46607145, -3497.07876643, -3379.69146141, -3262.3041564 ,\n",
       "        -3144.91685138, -3027.52954636, -2910.14224135, -2792.75493633,\n",
       "        -2675.36763131, -2557.9803263 , -2440.59302128, -2323.20571626,\n",
       "        -2205.81841125, -2088.43110623, -1971.04380121, -1853.6564962 ,\n",
       "        -1736.26919118, -1618.88188616, -1501.49458115, -1384.10727613,\n",
       "        -1266.71997111, -1149.3326661 , -1031.94536108,  -914.55805606,\n",
       "         -797.17075105,  -679.78344603,  -562.39614101,  -445.008836  ,\n",
       "         -327.62153098,  -210.23422596,   -92.84692095,    24.54038407,\n",
       "          141.92768909,   259.3149941 ,   376.70229912,   494.08960413,\n",
       "          611.47690915,   728.86421417,   846.25151918,   963.6388242 ,\n",
       "         1081.02612922,  1198.41343423,  1315.80073925,  1433.18804427,\n",
       "         1550.57534928,  1667.9626543 ,  1785.34995932,  1902.73726433,\n",
       "         2020.12456935,  2137.51187437,  2254.89917938,  2372.2864844 ,\n",
       "         2489.67378942,  2607.06109443,  2724.44839945,  2841.83570447,\n",
       "         2959.22300948,  3076.6103145 ,  3193.99761952,  3311.38492453,\n",
       "         3428.77222955,  3546.15953457,  3663.54683958,  3780.9341446 ,\n",
       "         3898.32144962,  4015.70875463,  4133.09605965,  4250.48336467,\n",
       "         4367.87066968,  4485.2579747 ,  4602.64527972,  4720.03258473,\n",
       "         4837.41988975,  4954.80719477,  5072.19449978,  5189.5818048 ,\n",
       "         5306.96910982,  5424.35641483,  5541.74371985,  5659.13102487,\n",
       "         5776.51832988,  5893.9056349 ,  6011.29293992,  6128.68024493,\n",
       "         6246.06754995,  6363.45485497,  6480.84215998,  6598.229465  ,\n",
       "         6715.61677002,  6833.00407503,  6950.39138005,  7067.77868506,\n",
       "         7185.16599008,  7302.5532951 ,  7419.94060011,  7537.32790513,\n",
       "         7654.71521015,  7772.10251516,  7889.48982018,  8006.8771252 ,\n",
       "         8124.26443021,  8241.65173523,  8359.03904025,  8476.42634526,\n",
       "         8593.81365028,  8711.2009553 ,  8828.58826031,  8945.97556533,\n",
       "         9063.36287035,  9180.75017536,  9298.13748038,  9415.5247854 ,\n",
       "         9532.91209041,  9650.29939543,  9767.68670045,  9885.07400546,\n",
       "        10002.46131048, 10119.8486155 , 10237.23592051, 10354.62322553,\n",
       "        10472.01053055, 10589.39783556, 10706.78514058, 10824.1724456 ,\n",
       "        10941.55975061, 11058.94705563, 11176.33436065, 11293.72166566,\n",
       "        11411.10897068, 11528.4962757 , 11645.88358071, 11763.27088573,\n",
       "        11880.65819075, 11998.04549576, 12115.43280078]),\n",
       " <a list of 150 Patch objects>)"
      ]
     },
     "execution_count": 35,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAY4AAAD8CAYAA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9bqxWOZfRl5DNfx/n+SwWn5F4aO56WTfD5MuN43Mnjh/KP2WL9/ucexvUDc0Gr6IjAzNNa723NpgaEX9gnX+4MMzsLPGGrbFMeWwZzLU8D/Y/B+/5WTPI5L/c1NsNYNfx3wk+OSpC6nxOS4JGlyDA5JUheDQ5LUxeCQJHUxOCRJXQwOSVIXg0OS1MXgkCR1+f8ZWZAozmTLuwAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "import matplotlib.pyplot as plt\n",
    "import matplotlib.font_manager as fm\n",
    "font = fm.FontProperties(fname='./font/wqy-microhei.ttc')\n",
    "n_bins = 150\n",
    "\n",
    "fig, axs = plt.subplots()\n",
    "axs.hist(is_profit, bins=n_bins, density=True)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3.6.8 64-bit ('3.6.8': pyenv)",
   "language": "python",
   "name": "python36864bit368pyenvbe0f3fdd6adc4233adb0afedb1c91391"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
